import request from '@/utils/request'

// 查询商品列表
export function listFruit(query) {
    return request({
        url: '/fruit/list',
        method: 'get',
        params: query
    })
}

export function getFruitDict(query) {
    return request({
        url: '/fruit/getFruitDict',
        method: 'get',
        params: query
    })
}
export function getFruitrDetail(cid) {
    return request({
      url: '/fruit/detail/' + cid,
      method: 'get'
    })
}
export function addOrEditFruit(data) {
    return request({
      url: '/fruit/save',
      method: 'post',
      data
    })
  }
export function delFruit(cid) {
    return request({
        url: '/fruit/delete/' + cid,
        method: 'get'
    })
}